import { request } from '@/utils/request'
// 查询车辆部件列表
export function listCarComponent(query) {
  return request({
    url: '/system/carComponent/list',
    method: 'get',
    params: query
  })
}

// 查询车辆部件详细
export function getCarComponent(id) {
  return request({
    url: '/system/carComponent/' + id,
    method: 'get'
  })
}

// 新增车辆部件
export function addCarComponent(data) {
  return request({
    url: '/system/carComponent',
    method: 'post',
    data: data
  })
}

// 修改车辆部件
export function updateCarComponent(data) {
  return request({
    url: '/system/carComponent',
    method: 'put',
    data: data
  })
}

// 删除车辆部件
export function delCarComponent(id) {
  return request({
    url: '/system/carComponent/' + id,
    method: 'delete'
  })
}
